<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>查询差绝对值的最小值</title>
</head>
<body>
  <script>
    
    console.log(fn([1,3,4,8], [[0,1],[1,2],[2,3],[0,3]]))
  </script>
</body>
</html>